﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="Week3Wscc._Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <asp:PlaceHolder ID="ph_SuperUsers" runat="server">

    This is the test content for the SUPER users!
    
    </asp:PlaceHolder>

        <asp:PlaceHolder ID="ph_PleaseRegister" runat="server">

    <font color="red">Please register</font> <a href="Account/Register.aspx">here</a> <font color="red">to access more functionalities of our <b>FoodSharing</b> site.</font>
    
    </asp:PlaceHolder>

            <asp:PlaceHolder ID="ph_OrdinaryUsers" runat="server">

    </asp:PlaceHolder>


    <h1>
      
        <strong>Check out the recipe of the day and grab the ingedrients from FoodSharing 2.0! </strong>
        </h1>
    <br />

 <center>
     <img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0  src="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEzODk1MjkzNTk2OTYmcHQ9MTM4OTUyOTM5MjI5MSZwPTEyNDA4NjEmZD1UYXN*ZSUyMG9mJTIwSG9tZSZnPTQmb2Y9/MA==.gif" /><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" WIDTH="300" HEIGHT="250" id="Taste Of Home Recipe Widget"><PARAM NAME="movie" VALUE="http://www.tasteofhome.com/widgets/gigya/widgetGigya.swf" /><PARAM NAME="quality" VALUE="high" /><PARAM NAME="bgcolor" VALUE="#ffffff" /><PARAM NAME="flashVars" VALUE="crtr=1&config=xml%2Fconfig%2Exml&gig_lt=1389529359696&gig_pt=1389529392291&gig_g=4&gig_crtr=1" /><EMBED flashVars="crtr=1&config=xml%2Fconfig%2Exml&gig_lt=1389529359696&gig_pt=1389529392291&gig_g=4&gig_crtr=1" src="http://www.tasteofhome.com/widgets/gigya/widgetGigya.swf" quality="high" bgcolor="#ffffff" WIDTH="300" HEIGHT="250" NAME="Taste Of Home Recipe Widget" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" /></OBJECT>
 </center>   
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    
    </p>
    
    <asp:Accordion
    ID="Accordion0"
    runat="Server"
    SelectedIndex="0"
    HeaderCssClass="accordionHeader"
    HeaderSelectedCssClass="accordionHeaderSelected"
    ContentCssClass="accordionContent"
    AutoSize="None"
    FadeTransitions="true"
    TransitionDuration="250"
    FramesPerSecond="40"
    RequireOpenedPane="false"
    SuppressHeaderPostbacks="true">
    <Panes>
                <asp:AccordionPane ID="AccordionPane1" runat="server">
            <Header><img src="/pictures/misc/tags_icon.png" /> Or browse the listings by tags!</Header>

   <Content>
           <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource2" HorizontalAlign="Center" RepeatDirection="Horizontal">
            <ItemTemplate>
             
              <asp:HyperLink Runat="server" NavigateUrl ='<%#"FoodByTag.aspx?Tag=" + DataBinder.Eval(Container.DataItem, "Tag").ToString()%>' ID="Hyperlink2">
          <%# DataBinder.Eval(Container.DataItem, "Tag")%>

           
                            </asp:HyperLink>    
                <br />
                <br />


            </ItemTemplate>
        </asp:DataList>
                   
            </Content>
        </asp:AccordionPane>            
    </Panes>            

</asp:Accordion>

      <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:FoodConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:FoodConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Tag] FROM [tags]">
        </asp:SqlDataSource>



</asp:Content>

      